home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1357 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  681 b 

  1. Path: news.cc.sunysb.edu!engws12!bmadhusu
  2. From: bmadhusu@engws12.ic.sunysb.edu (Bommasamudram Madhusudan)
  3. Newsgroups: comp.lang.c
  4. Subject: What the hell is THIS?!
  5. Date: 12 Jan 1996 23:40:01 GMT
  6. Organization: SUNY Stony Brook
  7. Message-ID: <4d6rgh$rfu@abel.cc.sunysb.edu>
  8. NNTP-Posting-Host: engws12.cc.sunysb.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. hi guys;
  12.  
  13. I'm going nuts trying to figure this out;
  14.  
  15. Can someone explain what
  16.  
  17.   int (*p)[3]  is?????
  18.  
  19.   Is this an array of pointers to integers 
  20.  
  21.   OR
  22.  
  23.   a pointer to an array of integers?? HELP!
  24.  
  25. I can say things like:
  26.  
  27. (*p)[0] = 3; for e.g, but when I print the value using:
  28.  
  29.  printf("%d",(*p)[0]) I get a core dump!
  30.  
  31.  
  32.  
  33.  
  34. Thanks,
  35.  
  36.